<ftp_putfile> : Upload File (FTP)
Uploads file from local machine to a remote FTP server.
Syntax:
<ftp_putfile>("LocalFile", "RemoteFile", "UserName", "Password")
LocalFile
Full path to the file on local machine. If the file already exists it will
be overwritten without a prior prompt.
RemoteFile
Full path to the remote file (e.g., ftp://softwareutilities.com/about.txt).
UserName
User login name. If empty the "anonymous" is considered.
Password
User name login password.
Example:
<#> This macro uploads file to an FTP server
<#>
<cmds>
<form_item>("fm1","Remote file:","EDIT","","vRemoteFile")
<form_item>("fm1","Local file:","EDIT","","vLocalFile")
<form_item>("fm1","User:","EDIT","","vUser")
<form_item>("fm1","Password:","EDIT","","vPassword")
<form_show>("fm1","File Upload","shell32.dll",14)
<if_str>("_vCanceled==1")<exitmacro><endif>
<ftp_putfile>("vLocalFile","vRemoteFile","vUser","vPassword")